//
//  Def.h
//  chuiniu
//
//  Created by zheng ji on 14-9-21.
//  Copyright (c) 2014年 jxw. All rights reserved.
//

typedef enum {
    TradeTypeSinglePlayingWin=0,//单人模式赢
    TradeTypeBuyGoldCoin=1//购买
    
}GoldCoinTradeType;


typedef enum{
    PlayerOpened=0,//玩家开看结果
    VSPlayerOpened=1//对家开看结果
}whoOpened;

typedef enum {
    ResponseCodeSuccess=0,
    ResponseCodeFailure=-1,
    ResponseCodePlayerOffline=1,//玩家已经下线
    ResponseCodePlayerAlreadyPK=2,//玩家正在对战
    ResponseCodePlayerRejectPK=3,//玩家拒绝对战
    ResponseCodeWaitVSPlayerShaked=4,//等待对家摇定骰子
    ResponseCodeWaitVSPlayerGuess=5//等待对家猜测
} ResponseCode;

typedef enum
{
    ScenceMainView = 1,//主界面
    ScencePlayView= 2,//游戏界面
    ScenceGameSet=3,//设置
    ScencePlayerLevel=4,//等级界面
    ScenceBuyCoin=5//购买金币界面
    
    
} ScenceView;

typedef enum
{
    GameStatusNormal = 1,
    GameStatusPlaying= 2,
    GameStatusGameOver=3,
    GameStatusInterrupt=4
    
    
} GameStatus;


typedef enum
{
    GameModelSinglePlayer = 1,
    GameModelMutilPlayer= 2,
    
    
} GamePlayModel;


typedef enum
{
    tagWaitAcceptPK = 1,
    tagWaitStartShark= 2,
    tagWaitVSPlayerSharked=3,//等待对家摇定骰子
    tagWaitVSPlayerGuessNumber=4,//对待对家猜测
    tagWaitStartGuessNumber=5, //自己开始猜测
    tagWaitSelectPlayer=6,//等待对家接收对战
    tagWaitVSPlayReady=7//等待对家准备就绪
    
    
} tagToast;

typedef enum
{
    tagAlertViewUpgrade = 1,
    tagAlertViewRegisterPlayer= 2,
    tagAlertViewRequestPK  =3,
    tagAlertViewForAcceptPK  =4,
    tagAlertViewWaitVSPlayerSharked=5,
    tagAlertViewWaitVSPlayReady=6,
    tagAlertViewVSPlayOffline=7 //对家已经下线

} tagAlertView;

extern NSString * const CommandUpdatePlayerName;

extern NSString * const CommandQuitLogin;
//设备是否注册
extern NSString * const CommandCheckDeviceRegister;

//金币产品列表
extern NSString * const CommandGoldCoinProduct;

//金币
extern NSString * const CommandGoldTrade;

//准备好可以开始游戏
extern NSString * const CommandReadyPlay;

//猜测超时
extern NSString * const CommandGuessTimeOver;

/**
 * 玩家登陆
 */
extern NSString * const CommandLogin;

/**
 * 在线用户列表
 */
extern NSString * const CommandOnlinePlayer;

/**
 * 注册用户
 */
extern NSString * const CommandRegisterPlayer;

/**
 * 选择对战玩家
 */
extern NSString * const CommandSelectPlayer;

/**
 *给玩家发送对战请求
 */
extern NSString * const CommandRequestPK;


/**
 * 服务器给发起请战的玩家发送对家拒绝命令
 */
extern NSString * const CommandRejectPK;

/**
 * 玩家发送摇定的所有骰子点数
 */
extern NSString * const CommandDiceNumber;


/**
 * 玩家发送猜测点数到服务器
 */
extern NSString * const CommandGuessData;

/**
 * 服务器给玩家发送对家猜测的数据
 */
extern NSString * const CommandSendGuessDataVS;

/**
 * 接收到对家摇定的所有骰子点数
 */
extern NSString * const CommandVSPlayerDiceNumbers;

/**
 *  用户已经下线或退出
 */
extern NSString * const CommandPlayerClosed;

/**
 *开看结果
 */
extern NSString * const CommandOpenMatch;

/**
 *开始摇骰子
 */
extern NSString * const CommandStartShakeDice;

/**
 *开始猜测
 */
extern NSString * const CommandStartGuess;

/**
 *保存玩家名称
 */
extern NSString * const CommandSavePlayerName;

